package com.forenow.demo.Game;
import java.util.Scanner;
public class Function {
       public static void main(String[] args) {
        int usort=0;
        int csort=0;
        int b=0;
        String name1="刘备";
        String name2="曹操";
        String name3="孙权";
        Scanner scanner=new Scanner(System.in);
        Menu menu=new Menu();
        menu.welcome();
        System.out.print("请选择对方角色（1：刘备 2：孙权 3：曹操）:");
        int choose=scanner.nextInt();
        System.out.print("请输入您的姓名：");
        String name=scanner.next();
        Go go=new Go();
        boolean ifgo=go.isgo();
        ChuQuan cq=new ChuQuan();
        Goon goon=new Goon();
        do {
            switch (choose){
                case 1:
                    System.out.println(name+"vs"+name1);
                    if (ifgo ) {
                        b=cq.chuquan(name1);
                    }
                    goon.g(name,name1);
                    break;
                case 2:
                    System.out.println(name+"vs"+name3);
                    if (ifgo ) {
                        b=cq.chuquan(name2);
                    }
                    goon.g(name,name1);
                    break;
                case 3:
                    System.out.println(name+"vs"+name2);
                    if (ifgo ) {
                     b= cq.chuquan(name3);
                    }
                    goon.g(name,name1);
                    break;
                default:
            }
        }while (true);


    }

}
